package kpi.javatraining6.gnatiuk.tests;

import kpi.javatraining6.gnatiuk.src.tester.question.MultipleAnswerQuestion;
import kpi.javatraining6.gnatiuk.src.tester.question.OwnAnswerQuestion;
import kpi.javatraining6.gnatiuk.src.tester.question.Question;
import kpi.javatraining6.gnatiuk.src.tester.question.SingleAnswerQuestion;
import org.junit.Before;
import org.junit.Test;

import java.util.ArrayList;
import static org.junit.Assert.*;


public class QuestionTypesTest {

    @Before
    public void setUp() throws Exception {

    }

    @Test
    public void testDetermineMultiQuestionNote() throws Exception {
        Question question = new MultipleAnswerQuestion("EASY", "", new ArrayList<String>(), new ArrayList<String>());
        assertEquals(" (few answers)\n", question.toString());
    }

    @Test
    public void testDetermineSingleQuestionNote() throws Exception {
        Question question = new SingleAnswerQuestion("EASY", "", new ArrayList<String>(), new ArrayList<String>());
        assertEquals(" (only one answer)\n", question.toString());
    }

    @Test
    public void testDetermineOwnQuestionNote() throws Exception {
        Question question = new OwnAnswerQuestion("EASY", "", new ArrayList<String>(), new ArrayList<String>());
        assertEquals(" (own answer)\n", question.toString());
    }
}
